

/* 卡牌样式 */
.card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    width: 120px; /* 根据图片尺寸调整 */
    height: 200px; /* 根据图片尺寸调整 */
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 10%;
    margin-right: -30px; 
}

.card:hover {
    z-index: 100;
    scale: 1.1;
    box-shadow: 0 12px 24px rgba(235, 228, 13, 0.433);
}

.card-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10%;
}

.card-content {
    position: absolute;
    bottom: 0; /* 固定在底部 */
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
    color: white; /* 文字颜色 */
    box-sizing: border-box; /* 确保padding不影响宽度 */
    border-bottom-left-radius: 10%;
    border-bottom-right-radius: 10%;
}

.card-name {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 5px;
    color: #fff23c;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-cost {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 25px;
    height: 25px;
    background:  rgba(255, 215, 0, 1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

.card-number {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background:  rgba(255, 0, 0, 1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

.card-description {
    color: rgba(52, 180, 240, 0.8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 技能弹窗 */
.skill-info {
    position: absolute;
    bottom: calc(100% + 10px); /* 显示在卡片上方 */
    left: 0;
    width: 100%;
    max-height: 600px; /* 限制最大高度 */
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 15px;
    border-radius: 8px;
    opacity: 0; /* 初始透明 */
    visibility: hidden; /* 初始隐藏 */
    transform: translateY(20px); /* 初始位移 */
    transition: all 0.3s ease;
}

/* 悬停时显示弹窗 */
.card:hover .skill-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* 复位动画 */
}

/* 弹窗箭头装饰 */
.skill-info::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    border: 10px solid transparent;
    border-top-color: rgba(0,0,0,0.9);
    transform: translateX(-50%);
}

/* 内容弹性布局 */
.skill-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    white-space: normal; /* 允许自动换行 */
}

@media (max-width: 768px) {

    .card {
        min-width: 150px;
    }

}